package com;

/**
 * @author 吴宇~
 * @motto 我亦无他，唯手熟尔。
 * @edition jdk1.8
 * @reflection 0-1 喧闹任其喧闹，自由我自为之，我自风情万种，与世无争。
 * @person Han Xiaojiu
 */
public class Tank {
    private int x;
    private int y;
    private int direct;
    private int speed=10;

    public Tank(int x, int y, int direct) {
        this.x = x;
        this.y = y;
        this.direct = direct;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getDirect() {
        return direct;
    }

    public void setDirect(int direct) {
        this.direct = direct;
    }
    public void MoveUp() {
        y = y - speed;
    }

    public void MoveRight() {
        x = x + speed;
    }

    public void MoveDown() {
        y = y + speed;
    }

    public void MoveLeft() {
        x = x - speed;
    }
    public void MoveStop(){

    }
}
